from tkinter import*
x=int(input('Vvedite nachal`nuyu coordinatu x'))
y=int(input('Vvedite nachal`nuyu coordinatu y'))
n=int(input('Vvedite kooficent'))
coords=[10,0,
        20,0,
        20,10,
        30,10,
        30,20,
        20,20,
        20,30,
        10,30]
if max(coords)*n+max(x,y)>500:
    print('nelza postroit figuru')
else:
    root=Tk()
    root.title('qq')
    root.geometry ("500x500")
canvas=Canvas(bg="black",width=500,height=500)
canvas.pack(anchor=CENTER,expand=1)
canvas.create_polygon(coords [0]*n+x,coords [1]*n+y,
                      coords [2]*n+x,coords [3]*n+y,
                      coords [4]*n+x,coords [5]*n+y,
                      coords [6]*n+x,coords [7]*n+y,
                      coords [8]*n+x,coords [9]*n+y,
                      coords [10]*n+x,coords [11]*n+y,
                      coords [12]*n+x,coords [13]*n+y,
                      coords [14]*n+x,coords [15]*n+y,fill='green')
root.mainloop()

